package com.demoReflect;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.PrintStream;

public class demofile {
    public static void main(String[] args) throws FileNotFoundException {
        File file = new File("data.txt");
        PrintStream ps = new PrintStream(new FileOutputStream(file));
        ps.println("helloworld");
        ps.close();

    }
}
